local all_info = require "all_info";

local Config = {
    -- .tomcat
    tomcat = {
        Filename = "C:\\tomcat\\server\\WEB-INF\\classes\\application.yaml",
        SQLServerIP = all_info.sql_address_private,              -- 数据库内网IP、端口：
        SQLServerPort = all_info.sql_port or "1433",                   -- 端口
        SQLServerUser = "java_app",             -- java_app的密码
        SQLServerPass = all_info.java_pass,               -- java_app的密码  
        redisIP = all_info.java_address_private,                   -- 连接java的redis
        Launch = {  -- 启动
                Main = "C:\\tomcat\\bin\\startup.bat",
                Param = "",                                  
        }     
    },

    -- node_pay_app
    node_pay = {
        Filename = "C:\\node_server\\inc\\Define.js",   --node_pay的配置文件
        SQLServerIP = all_info.sql_address_private,                      --node_pay要连接的数据库
        SQLServerPort = all_info.sql_port or "1433",                           --数据库端口
        SQLServerUser = "node_pay_app",               --node_pay用户名
        SQLServerPass = all_info.node_pay_pass,                       --node_pay密码
        Launch = {                                      --启动脚本
            Main = "C:\\node_server\\run.bat",
            Param = "",              
        }
    },

    -- node_login_app
    node_login = {
        Filename1 = "C:\\NoticeServer[2019-07-16]\\config.js",    --node_login的配置文件
        Filename2 = "C:\\NoticeServer[2019-07-16]\\controller\\static\\config\\publish\\GameList.json",
        SQLServerIP = all_info.sql_address_private,                      --node_login要连接的数据库
        SQLServerPort = all_info.sql_port or "1433",                           --数据库端口
        SQLServerUser = "node_login_app",               --node_login用户名
        SQLServerPass = all_info.node_login_pass,                       --node_login密码
        DownloadUrl = all_info.downurl,
        Launch = {
            Main = "C:\\NoticeServer[2019-07-16]\\NoticeServer.bat",
            Param = "",
        }
    },

    --iis_app
    iis_app = {
        Filename = "C:\\后台\\WHJHFront\\Web.config",
        SQLServerIP = all_info.sql_address_private,
        SQLServerPort = all_info.sql_port or "1433",
        SQLServerUser = "iis_app",
        SQLServerPass = all_info.iis_pass,
        Launch = {
            Main = "C:\\IISWatcher\\setup.exe",
            Param = "",
        }
    },

    --新聊天服
    new_chat = {
        Filename = "C:\\Users\\Administrator\\Desktop\\聊天服\\ConfigInfo.xml",
        SQLServerIP = all_info.sql_address_private,
        SQLServerPort = all_info.sql_port or "1433",
        SQLServerUser = "java_app",
        SQLServerPass = all_info.java_pass,
        LaunchList = {
            {
                Main = "C:\\Users\\Administrator\\Desktop\\聊天服\\CustomerServer.exe",
                Param = "",
            },
            {
                Main = "C:\\Users\\Administrator\\Desktop\\聊天服\\ChatProxyServer\\ChatProxyServer.bat",
                Param = "",
            }   
        }
    },

    game_server = {
        Filename1 = "C:\\Users\\Administrator\\Desktop\\新版游戏服\\GameServer\\ServerParameter.ini", -- 服务器目录
        Filename2 = "C:\\Users\\Administrator\\Desktop\\2019-7-3游戏服\\ServerParameter.ini", -- 服务器目录
        Filename3 = "C:\\base32.txt",
        ServiceAddr = all_info.web_address_public,
        SQLServerPort = all_info.sql_port or "1433",
        DBAddr = all_info.sql_address_private,
        SQLServerUser = "cpp_app",
        SQLServerPass = all_info.cpp_pass,
        GooglePass = all_info.google_pass,
        LaunchList = {
            {
                Main = "C:\\Users\\Administrator\\Desktop\\新版游戏服\\GameServer\\CorrespondServer.exe",
                Param = "",
            },
            {
                Main = "C:\\Users\\Administrator\\Desktop\\新版游戏服\\GameServer\\ChatServer.exe",
                Param = "",
            },
            {
                Main = "C:\\Users\\Administrator\\Desktop\\2019-7-3游戏服\\LogonServer.exe",
                Param = "",
            }   
        }
    }
}     

return Config